<?
session_start();
@ini_set('display_errors', 'off');
include_once("class.lib/db.class.php");
include_once("class.lib/user.class.php");
include_once("class.lib/diplome.class.php");
include_once("class.lib/cours.class.php");
include_once("class.lib/domaine.class.php");
include_once("class.lib/mention.class.php");
include_once("class.lib/aa_niveau.class.php");
include_once("class.lib/aa_projet.class.php");
include_once("class.lib/grade.class.php");

$cin=$_SESSION["cin"];
if($cin=="") { header("Location: ../index.php");   }
if(isset($_GET['id_ue'])){
	$code_ue=$_GET['id_ue'];
}else{
	$code_ue=$_SESSION['code'];
}




?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="css/validationEngine.jquery.css" type="text/css" media="screen" title="no title" charset="iso-8859-1" />
<link rel="stylesheet" href="css/template.css" type="text/css" media="screen" title="no title" charset="iso-8859-1" />
<script type="text/javascript" src="jquery-1.5.1.min.js"></script>
<script src="js/jquery.validationEngine-fr.js" type="text/javascript"></script>  
<script src="js/jquery.validationEngine.js" type="text/javascript"></script>
<script type="text/javascript" src="javascript.js"></script>


<script>
//	alert('');
function load_page(page,zone){

		$.ajax({
			type:"POST",
			url : page,
			data: "",
			beforeSend: function(xhr){
                $("#"+zone).html("<img src='../../images/loading.gif'/>");
            },
			success : function (data) {
				$("#"+zone).html(data);
			}
			});
	}
	
function load_page_action(page,zone,id_coconcepteur){
		$(".espacemodif2").html("");
		$("#ajout").html("");
		$.ajax({
			type:"POST",
			url : page,
			data: "id_coconcepteur="+id_coconcepteur,
			beforeSend: function(xhr){
                $("#"+zone).html("<img src='../../images/loading.gif'/>");
            },
			success : function (data) {
				$("#"+zone).html(data);
			}
			});
	}

function reset_page(zone){

				$("#"+zone).html("");

	}	
	
	load_page('addpartenaire.php?id_ue=<? echo $_GET['id_ue'];?>','ajout');
	
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>IDENTIFICATION DES PARTENAIRES DU PROJET </title>

<link href="presse.css" rel="stylesheet" type="text/css" />

   


</head>
<body  onload="load_page('listpartenaire.php?id_ue=<? echo $_GET['id_ue'];?>','listcoconcepteur');">
<!--table width="677" height="575" border="0" cellpadding="0" cellspacing="0" align="center" >
    <tr>
     <td--> <!--td align="center" valign="top" background="images/fond_soumission.gif"-->
  
  	 <table align="center">
	 <tr align="center"><td><img src="images/partnership.png"  width="72" height="72" /></td>
	 <td align="right"><H1><font color="DD0269">MODIFICATION DE IDENTIFICATION DES PARTENAIRES DU PROJET </font></H1><br/></td>
	 </tr>
	</table>
	
<table width="90" border="0" align="center" cellpadding="0" cellspacing="0"  >
  <tr> 
    <td><a href="modif_index.php?id_ue=<? echo $_GET['id_ue'];?>"><img src="images/etape1_off.jpg" width="90" height="20" border="0"/></a></td>
    <td><a href="modif_cours.php?id_ue=<?     echo $_GET['id_ue'];?>"><img src="images/etape2_off.jpg" width="90" height="20" border="0"/></a></td>
    <!--<td><a href="modif_indexation.php?id_ue=<?     echo $_GET['id_ue'];?>"><img src="images/etape2_off.jpg" width="90" height="20" border="0" /></a></td>
	-->
    <td><img src="images/etape3_on.jpg" width="90" height="20" border="0"/></td>
	<td><a href="modif_equipe.php?id_ue=<? echo $_GET['id_ue'];?>"><img src="images/etape4_off.jpg" width="90" height="20" border="0"/></a></td>

	</tr>
</table>


<u>
<H1>&nbsp; </H1>
</u> 
<table width="500" border="0" cellspacing="0" cellpadding="0" align="center" >
    <tr> 
      <td align="left"> <p><strong><font color="DD0269">NB</font></strong>: Veuillez 
        v&eacute;rifier toutes les informations avant de valider le formulaire.<br />
     
      </p>
      </td>
    </tr>
    <tr> 
      
    <td align="left">&nbsp; </td>
    </tr>
    <tr>
      <td> 
        <table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr align="left"> 
		<td  valign="top">
		
		
	<a href="#" onclick="load_page('addpartenaire.php?id_ue=<? echo $_GET['id_ue'];?>','ajout');"><img src="images/add.png" border="0" valign="middle" align="left"><div align="left">&nbsp;Ajouter</div></a>

	<div id="ajout">
	</div>

		</td>
		
          <td height="0" valign="top"><em><font color="#277BB0"><strong> </strong></font></em> 

        <form name="coconcepteur" id="coconcepteur" method="post" action="" >
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr align="left"> 
                  <td colspan="3"> 
				  <!--<strong><img src="images/navi_arerow.gif" width="6" height="21" align="absmiddle" /> 
                   	Proposer un nouveau partenaire du projet  </strong>-->
					 <img src="images/Edit.png" />
				  <strong><img src="images/navi_arerow.gif" width="6" height="21" align="absmiddle" />Modification:</strong>
				  
					</td>
                </tr>
                <tr valign="top" bgcolor="#345491"> 
                  <td colspan="3"><img src="images/gif/pix.gif" width="1" height="1"></td>
                </tr> 
				<!--tr align="left"> 
                  <td height="25">Nom &amp; Pr&eacute;nom </td>
                  <td width="5" height="25">:</td>
                  <td height="25" ><textarea name="coconcepteur" cols="43" rows="5" id="coconcepteur"  title="Nom &amp; Pr&eacute;nom des co-concepteurs"></textarea></td>
                </tr-->

               
			   
			   	<tr>
		
	<td colspan="3">
		
		<!-- new -->
		
		



<div align="center" id="listcoconcepteur">
<table id="listajout" width="500">

<tr bgcolor="#72CFC2">
<td>Nom</td><td>Pr&eacute;nom</td><td>Grade</td><td>Email</td><td>Tel.</td><td>Sp&eacute;cialit&eacute;</td><td align="center">Actions</td>
</tr>

<tr>
<td>Nom</td><td>Pr&eacute;nom</td><td>Grade</td><td>Email</td><td>Tel.</td><td>Sp&eacute;cialit&eacute;</td><td align="center"><a href="#" onclick="load_page('updatepartenaire.php?id_ue=<? echo $_GET['id_ue'];?>','test_');">Modifier</a> | <a href="#" onclick="load_page('deletepartenaire.php?id_ue=<? echo $_GET['id_ue'];?>','test_');"> Supprimer</a></td>
</tr>
<tr>
<td colspan="7" id="test_"></td>
</tr>

</table>

</div>

		<!-- new -->
		
	</td>	
		
	</tr>

			   
			   
			   
                <tr align="left"> 
                  <td height="25">&nbsp;</td>
                  <td height="25">&nbsp;</td>
                  <td height="25"><input name="addcoconcepteur" type="hidden" id="addcoconcepteur" value="OK" />                  </td>
                </tr>
                <tr> 
                  <td height="25" align="left">&nbsp;</td>
                  <td height="25">&nbsp;</td>
                  <td height="25" align="left"> <input type="reset" name="Submit22" value="R&eacute;tablir" class="button" /> 
                    <input name="modif_unite" type="hidden" id="modif_unite" value="OK" />
				    <input type="submit" name="Submit3" value="Confirmer" class="button" />                  </td>
                </tr>
              </table>
            </form>
       
      </td>
    </tr>
    <tr>
	<td>
	
	</td>
      
    <td align="left">&nbsp;</td>
    </tr>
  </table>
  </td>
    </tr>
	
	
	
	
	
	
</table>
<!--/td></tr>
</table-->

<p> 
  <?
 //if(isset($_POST["addcoconcepteur"]))
  //  {
	 if(!empty($_POST['addcoconcepteur']))
{	  
	/* $ue_tab["coconcepteur"]        =   $_POST["coconcepteur"];
    
	
	// R�cup�ation de l'id du cours en quesition
	 $cours = new Cours();
	 $id_ue = $cours->getCoursBySession(session_id());
	 //echo $id_ue;
	 $ue_tab["code_ue"]             =   $id_ue;
	 
	 //$res  = $cours->editCours($ue_tab);
	 */
	// echo '2222------'.$code_ue;	
	// $_unite=new unite(); 
	// $_unite->updateDescision('comp',$code_ue);
 	// $details_unite=$_unite->getUniteCode($code_ue);
	 
		//  var_dump($details_unite);exit;
	 


	
	
	 //$_unite->UPDATE(); 
	// On actualise la page
	echo "<script language=\"JavaScript\"> document.location=\"modif_equipe.php?id_ue=".$code_ue."\"; </script>;";
	//} 
}
  
?>
</p>







</body>
</html>
